package cn.tedu.supermarket.entity;

import java.io.Serializable;

public class CartVO implements Serializable {
    private Integer goodsId;
    private Integer userId;
    private Integer num;
    private Integer sumPrice;

    public CartVO() {
    }

    public CartVO(Integer goodsId, Integer userId, Integer num, Integer sumPrice) {
        this.goodsId = goodsId;
        this.userId = userId;
        this.num = num;
        this.sumPrice = sumPrice;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(Integer sumPrice) {
        this.sumPrice = sumPrice;
    }

    @Override
    public String toString() {
        return "CartVO{" +
                "goodsId=" + goodsId +
                ", userId=" + userId +
                ", num=" + num +
                ", sumPrice=" + sumPrice +
                '}';
    }
}
